package gwt.trading.client;

import gwt.trading.client.util.ColorEnum;

/**
 * Base class for axis.
 * 
 * @author Iulian Costan (iulian.costan@gmail.com)
 */
public abstract class Axis implements Drawable {

	private ColorEnum color = ColorEnum.GREEN;
	private String label;
	private boolean showLines;

	private DrawingManager drawingManager;
	private DrawingBoard drawingBoard;

	public void setDrawingManager(DrawingManager drawingManager) {
		this.drawingManager = drawingManager;
	}

	public void setDrawingBoard(DrawingBoard drawingBoard) {
		this.drawingBoard = drawingBoard;
	}

	protected DrawingManager getDrawingManager() {
		return drawingManager;
	}

	public DrawingBoard getDrawingBoard() {
		return drawingBoard;
	}

	protected ColorEnum getColor() {
		return color;
	}

	protected String getLabel() {
		return label;
	}

	protected boolean isShowLines() {
		return showLines;
	}

}
